Drop the --gtk-debug and --gtk-no-debug options
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2016 23:49:30 +0000 (18:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Jan 2017 18:21:12 +0000 (13:21 -0500)
We have environment variables that cover this.

gtk/gtkmain.c

index 69b5c9ccf58875270dad2d4d2653328d0be70df7..c125a53dc1382e9d15417515821e84f2f12c1ac8 100644 (file)
@@ -397,37 +397,7 @@ gtk_disable_setlocale (void)
 
 static GString *gtk_modules_string = NULL;
 
-#ifdef G_ENABLE_DEBUG
-static gboolean
-gtk_arg_debug_cb (const char *key, const char *value, gpointer user_data)
-{
-  debug_flags[0].flags |= g_parse_debug_string (value,
-                                                gtk_debug_keys,
-                                                G_N_ELEMENTS (gtk_debug_keys));
-
-  return TRUE;
-}
-
-static gboolean
-gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
-{
-  debug_flags[0].flags &= ~g_parse_debug_string (value,
-                                                 gtk_debug_keys,
-                                                 G_N_ELEMENTS (gtk_debug_keys));
-
-  return TRUE;
-}
-#endif /* G_ENABLE_DEBUG */
-
 static const GOptionEntry gtk_args[] = {
-#ifdef G_ENABLE_DEBUG
-  { "gtk-debug",        0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_debug_cb,    
-    /* Description of --gtk-debug=FLAGS in --help output */    N_("GTK+ debugging flags to set"), 
-    /* Placeholder in --gtk-debug=FLAGS in --help output */    N_("FLAGS") },
-  { "gtk-no-debug",     0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_no_debug_cb, 
-    /* Description of --gtk-no-debug=FLAGS in --help output */ N_("GTK+ debugging flags to unset"), 
-    /* Placeholder in --gtk-no-debug=FLAGS in --help output */ N_("FLAGS") },
-#endif 
   { NULL }
 };